package com.wms.mapper;

import com.wms.entity.ReportLosses;
import com.wms.service.UserService;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ReportLossesMapper {
    /**
     * 查询报损列表
     * @return
     */
    List<ReportLosses> queryAllReportLosses();
    
    /**
     * 根据任务ID查询报损明细
     * @param taskId
     * @return
     */
    List<ReportLosses> queryReportLossesByTaskId(Integer taskId);
    
    /**
     * 更新报损状态
     * @param id
     * @param breakage
     * @return
     */
    int updateBreakageStatus(Integer id, Boolean breakage);
}
